package xyz.yudan.app.dao.base;

/**
 * Created by gamy on 2018/4/6.
 */
public class BaseTask {
    private String taskId = "";
    private String teamId = ""; //所属的team
    private String taskName = "";
    private String detail = "";
    private int state = 0;
    private int createTime = 0;
    private String creatorUid = ""; //创建者
    private String executorUids = ""; //执行者id列表, 逗号分隔


    public BaseTask(BaseTask task){
        this.setTaskId(task.getTaskId());
        this.setTaskName(task.getTaskName());
        this.setDetail(task.getDetail());
        this.setState(task.getState());
        this.setCreateTime(task.getCreateTime());
        this.setTeamId(task.getTeamId());
        this.setCreatorUid(task.getCreatorUid());
        this.setExecutorUids(task.getExecutorUids());
    }

    public BaseTask() {

    }

    public String getTeamId() {
        return teamId;
    }

    public void setTeamId(String teamId) {
        this.teamId = teamId;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getCreateTime() {
        return createTime;
    }

    public void setCreateTime(int createTime) {
        this.createTime = createTime;
    }

    public String getCreatorUid() {
        return creatorUid;
    }

    public void setCreatorUid(String creatorUid) {
        this.creatorUid = creatorUid;
    }

    public String getExecutorUids() {
        return executorUids;
    }

    public void setExecutorUids(String executorUids) {
        this.executorUids = executorUids;
    }
}
